home *** CD-ROM | disk | FTP | other *** search
- head 1.5;
- branch ;
- access ;
- symbols srv030:1.5 srv027:1.4 srv026:1.4 srv024:1.4 srv021:1.4 srv019:1.4 srv018:1.4 srv016:1.4 srv014:1.4 srv010:1.4 srv008:1.4 srv007:1.4 srv006:1.4 srv005:1.4 srv004:1.4 srv003:1.4 srv002:1.4 srv001:1.4;
- locks ; strict;
- comment @ * @;
-
-
- 1.5
- date 92.07.16.17.25.24; author kupfer; state Exp;
- branches ;
- next 1.4;
-
- 1.4
- date 92.04.16.11.09.06; author kupfer; state Exp;
- branches ;
- next 1.3;
-
- 1.3
- date 91.10.04.11.55.58; author kupfer; state Exp;
- branches ;
- next 1.2;
-
- 1.2
- date 91.09.26.12.26.08; author kupfer; state Exp;
- branches ;
- next 1.1;
-
- 1.1
- date 91.09.08.20.55.37; author kupfer; state Exp;
- branches ;
- next ;
-
-
- desc
- @@
-
-
- 1.5
- log
- @Add Sys_CharArray typedef.
- @
- text
- @/*
- * sys.h --
- *
- * User-level definitions of routines and types for the sys module.
- *
- * Copyright 1986, 1988 Regents of the University of California
- * Permission to use, copy, modify, and distribute this
- * software and its documentation for any purpose and without
- * fee is hereby granted, provided that the above copyright
- * notice appear in all copies. The University of California
- * makes no representations about the suitability of this
- * software for any purpose. It is provided "as is" without
- * express or implied warranty.
- *
- * $Header: /user5/kupfer/spriteserver/include/user/RCS/sys.h,v 1.4 92/04/16 11:09:06 kupfer Exp Locker: kupfer $ SPRITE (Berkeley)
- *
- */
-
- #ifndef _SYSUSER
- #define _SYSUSER
-
- #ifndef _SPRITE
- #include <sprite.h>
- #endif
- #include <cfuncproto.h>
-
- typedef enum {
- SYS_WARNING,
- SYS_FATAL
- } Sys_PanicLevel;
-
- /*
- * Flags for Sys_Shutdown.
- *
- * SYS_REBOOT Reboot the system.
- * SYS_HALT Halt the system.
- * SYS_KILL_PROCESSES Kill all processes.
- * SYS_DEBUG Enter the debugger.
- * SYS_WRITE_BACK Write back the cache after killing all processes but
- * obviously before halting or rebooting.
- */
-
- #define SYS_REBOOT 0x01
- #define SYS_HALT 0x02
- #define SYS_KILL_PROCESSES 0x04
- #define SYS_DEBUG 0x08
- #define SYS_WRITE_BACK 0x10
-
- /*
- * Structure that is filled in by Sys_GetMachineInfo.
- */
-
-
- /*
- * Machine architecture and type values from Sys_GetMachineInfo().
- */
-
- typedef struct {
- int architecture; /* machine architecture */
- int type; /* machine type */
- int processors; /* number of processors */
- } Sys_MachineInfo;
-
- #define SYS_SPUR 1
- #define SYS_SUN2 2
- #define SYS_SUN3 3
- #define SYS_SUN4 4
- #define SYS_MICROVAX_2 5
- #define SYS_DS3100 6 /* DecStation 3100 */
- #define SYS_SYM 7 /* Sequent symmetry */
- #define SYS_DS5000 8 /* DecStation 5000 */
-
- #define SYS_SUN_ARCH_MASK 0xf0
- #define SYS_SUN_IMPL_MASK 0x0f
-
- #define SYS_SUN_2 0x00
- #define SYS_SUN_3 0x10
- #define SYS_SUN_4 0x20
- #define SYS_SUN_4_C 0x50
-
- #define SYS_SUN_2_50 0x02
- #define SYS_SUN_2_120 0x01
- #define SYS_SUN_2_160 0x02
- #define SYS_SUN_3_75 0x11
- #define SYS_SUN_3_160 0x11
- #define SYS_SUN_3_50 0x12
- #define SYS_SUN_3_60 0x17
- #define SYS_SUN_4_200 0x21
- #define SYS_SUN_4_C_60 0x51
- #define SYS_SUN_4_C_65 0x53
-
- /*
- * Type definition for the Sprite MIG stub.
- */
-
- typedef char *Sys_CharArray; /* arbitrary character array */
-
- /*
- * Function declarations:
- */
-
- extern char * Sys_CallName _ARGS_((int callNumber));
-
- /*
- * These are user declarations and they potentially conflict with names in
- * the server, so don't declare them when building the server.
- */
- #ifndef SPRITED
- extern ReturnStatus Sys_GetMachineInfo _ARGS_((int size,
- Address bufferPtr));
- extern ReturnStatus Sys_Shutdown _ARGS_((int flags, char *rebootString));
- #endif
-
- #endif /* _SYSUSER */
- @
-
-
- 1.4
- log
- @Add Sys_CallName and function prototypes.
- @
- text
- @d15 1
- a15 1
- * $Header: /user5/kupfer/spriteserver/include/user/RCS/sys.h,v 1.3 91/10/04 11:55:58 kupfer Exp Locker: kupfer $ SPRITE (Berkeley)
- d92 9
- @
-
-
- 1.3
- log
- @Don't declare Sys_GetMachineInfo or Sys_Shutdown when building the server.
- @
- text
- @d15 1
- a15 1
- * $Header: /r3/kupfer/spriteserver/include/user/RCS/sys.h,v 1.2 91/09/26 12:26:08 kupfer Exp Locker: kupfer $ SPRITE (Berkeley)
- d25 1
- d92 3
- d100 3
- a102 2
- extern ReturnStatus Sys_GetMachineInfo();
- extern ReturnStatus Sys_Shutdown();
- @
-
-
- 1.2
- log
- @Add Sys_Shutdown.
- @
- text
- @d15 1
- a15 1
- * $Header: /r3/kupfer/spriteserver/include/user/RCS/sys.h,v 1.1 91/09/08 20:55:37 kupfer Exp Locker: kupfer $ SPRITE (Berkeley)
- d91 5
- d98 1
- @
-
-
- 1.1
- log
- @Initial revision
- @
- text
- @d15 1
- a15 1
- * $Header: /sprite/src/lib/include/RCS/sys.h,v 1.10 90/11/09 16:45:02 jhh Exp $ SPRITE (Berkeley)
- d92 1
- @
-